//
//  WeiboWebViewController.m
//  Project_2_weibo
//
//  Created by 林林 on 16/6/24.
//  Copyright © 2016年 lhn. All rights reserved.
//

#import "WeiboWebViewController.h"

@interface WeiboWebViewController ()
{
    NSURL *_url;
    UIWebView *_webView;
}
@end

@implementation WeiboWebViewController

- (instancetype)initWithURL:(NSURL *)url {
    
    self = [super init];
    if (self) {
        
        _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight - 64)];
        _url = url;
        
    }
    return self;
}



- (void)viewDidLoad {
    [super viewDidLoad];

    [self.view addSubview:_webView];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:_url];
    [_webView loadRequest:request];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
